package com.aliyun.oss.service;

import com.aliyun.oss.pojo.ArticleContent;
import com.aliyun.oss.pojo.ArticleInfo;
import com.aliyun.oss.pojo.ArticleListParams;
import com.aliyuncs.exceptions.ClientException;

import java.io.IOException;
import java.util.List;

public interface ArticleManageService {
    List<ArticleInfo> getArticleList(String authHeader, ArticleListParams articleListParams);

    Integer getAllArticleList(String authHeader);

    void addArticle(String authHeader, ArticleContent articleContent);

    ArticleContent getArticleInfo(String authHeader, Integer id);

    void updateArticleInfo(String authHeader, ArticleContent articleContent) throws IOException, ClientException;
}
